package epam.com.study.xml.classes;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "tns:jewel")
@XmlAccessorType(XmlAccessType.FIELD) 
public class ListOfStones {
	
	@XmlElement(name = "tns:stones")
	private List<Stone> stones;

	public void setStones( List<Stone> stones) {
		this.stones = stones;
	}
	public List<Stone> getStones() {
		return stones;
	}
	
	
	public ListOfStones() {
		stones = new ArrayList<Stone>();
	}
	
	public void  addStone(Stone stone) {
		stones.add(stone);
	}
	public List<Stone> getList() {
		return stones;
	}

}
